/*
 * BK_Tree.h
 *
 *  Created on: 14 nov. 2011
 *      Author: arthur
 */

#ifndef BK_TREE_H_
#define BK_TREE_H_

#include "image.h"
#include <QList>

class BK_Tree
{
	public:
		BK_Tree();
		virtual ~BK_Tree();

		//Attributs
		unsigned int (* distance)(Image image1, Image image2);
		Image image;
		BK_Tree **fils;

		//Constructeur
		BK_Tree(Image image, unsigned int(*distance)(Image, Image));
		//Méthodes
		void inserer(Image image);
		QList<Image> rechercher(Image image, unsigned int n);
};

BK_Tree creerBK_Tree(QList<Image> images, unsigned int(*distance)(Image, Image));

#endif /* BK_TREE_H_ */
